
# @Time    : 2018/5/19 下午4:20
# @Author  : wangying
# @Email   : 765581789@qq.com
# @File    : book.py
# @Software: PyCharm
from wtforms import Form, StringField, IntegerField
from wtforms.validators import Length, NumberRange

__author__ ='wangying'


class SearchForm(Form):
    q=StringField(validators=[Length(min=1,max=30)])
    page=IntegerField(validators=[NumberRange(min=1,max=99)],default=1)
